import React, { Component } from 'react';
import 'whatwg-fetch';
import 'es6-promise';

class NetTool extends Component {
	static get(url) {
		fetch(url)
		  .then(function(response) {
		    return response.json()
		  }).then(function(json) {
		    console.log('parsed json', json)
		  }).catch(function(ex) {
		    console.log('parsing failed', ex)
		  });
	}
}

export default NetTool;